package com.sc.serviceimpl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sc.bean.T_card;
import com.sc.dao.CardDao;


@Service
public class CardServiceImpl {

	@Autowired
	private CardDao cardDao;
	
	public int add(T_card card){		
		int result = cardDao.addCard(card);		
		return result;		
	}
	
	public List<T_card> find(){
		List<T_card> cardList=cardDao.queryCard();
		System.out.println(cardList);
		return cardList;
	}
	
}
